import { screen } from 'electron'

export function mac() {
  return process.platform === 'darwin'
}

export function calcWindowAreaSize() {
  const isMac = mac()
  const { width, height } = screen.getPrimaryDisplay().workAreaSize
  const minHeight = isMac ? 360 : 720
  const minWidth = isMac ? 720 : 1440
  return { width, height, minWidth, minHeight }
}
